import request from "./comm.js";

// 保存预约订单
export function restUserServerOrderSave(params) {
	return request({
		url: "/rest/user/serverOrder/save",
		method: "POST",
		type: 2,
		data: params
	});
}

// 预约单列表
export function restUserServerOrder(params) {
	return request({
		url: "/rest/user/serverOrder",
		method: "GET",
		data: params
	});
}


// 预约单列表
export function restUserServerOrderDetail(orderId, params) {
	return request({
		url: "/rest/user/serverOrder/detail/"+orderId,
		method: "GET",
		data: params
	});
}

// 预约单列表 取消订单
export function restUserServerOrderCancel(params) {
	return request({
		url: "/rest/user/serverOrder/cancel",
		method: "POST",
		type: 2,
		data: params
	});
}
